package impl

import (
	"gitee.com/yangwencheng/vblog/apps/comment"
	"gitee.com/yangwencheng/vblog/config"
	"gorm.io/gorm"
)

var _ comment.Service = &Impl{}

func NewImpl() *Impl {
	return &Impl{}
}

type Impl struct {
	db *gorm.DB
}

func (impl *Impl) Init() {
	impl.db = config.C().Mysql.ORM()
}
